package com.yanyu.space.file.bean.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.yanyu.space.common.core.bean.enums.IBean;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yanyu
 */
@AllArgsConstructor
@Getter
public enum FileUploadTypeEnum implements IBean {
    DIRECT(1, "直接"),
    SHARDING(2, "分片");

    @EnumValue
    @JsonValue
    private Integer value;
    private String name;

    @Override
    public boolean match(Integer value) {
        return this.value.equals(value);
    }
}
